<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Backup and Restore</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>

<body>

<p>Java projects use the bundle name together with the language code to generate the name of the .properties file. For example: A bundle called resources in an application which uses the languages English and German would generate two files - resources_en.properties and resources_de.properties.</p>
<p>The element name is used in calls to the <em>getString</em> method of ResourceBundle.</p>
<p>For example: To access an element called MainMenuText in a bundle called myresources, first initialize a new ResourceBundle using</p>
<pre>
ResourceBundle res = new ResourceBundle.getBundle("<span style="color:#EF0E0E;">myresources</span>", new Locale(<span style="color:#1B1675;">country, locale</span>));
</pre>
<p>then use</p>
<pre>
String menuText = res.getString("<span style="color:#158F00;">MainMenuText</span>");
</pre>


</body>
</html>

